package com.better.frontend.model.exam;

import com.better.backend.mqReceiverService.examReceiver.model.ExamUnitModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by wfm on 2017/11/19.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class AddExamSubjectParam {
    @ApiModelProperty(value = "考试id,创建考试的时候返回的Id,在第二部，需要传入", required = true)
    @NotNull
    @NotEmpty(message = "考试ID不能为空")
    private String id;//考试ID
    @ApiModelProperty(value = "参考单位，如果为校级考试，则表示年级信息，如果为班级考试，则表示班级信息", required = true)
    @NotNull
    @Valid
    @NotEmpty
    private List<ExamUnitModel> examUnitModels;
}
